﻿// ***********************************************************************
// <copyright file="IQiushibaikeDataService.cs" company="四川全球通">
// Copyright (c) 四川全球通. All rights reserved.</copyright>
// Assembly         : Tzq.DataService.Contract
// Author            : 谭志强
// Created          : 2016/1/13 11:00:01
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Tzq.DataService.Contract
{
    [ServiceContract]
    public interface IQiushibaikeDataService
    {
        /// <summary>
        /// 根据关键字获取笑话
        /// </summary>
        /// <param name="keywords"></param>
        /// <returns></returns>
        [OperationContract]
        string GetJokesByKeyWordes(string keywords);


        /// <summary>
        /// 随机获取笑话
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        string GetJokesByRandom();
    }
}
